﻿using System;
using IFDB.ViewModels.PartialViewModels;
using IFDB.ViewModels.PartialViewModels.Interfaces;

namespace IFDB.ViewModels.PageViewModels
{
    public class PersonViewModel
    {
        public PersonViewModel(Guid personId, Guid? seasonId)
        {
            this.personId = personId;
            this.seasonId = seasonId;
        }

        private Guid personId;
        private Guid? seasonId;

        private IPersonAppearancesViewModel personAppearancesViewModel;
        public IPersonAppearancesViewModel PersonAppearancesViewModel
        {
            get
            {
                if (personAppearancesViewModel == null)
                    personAppearancesViewModel = new PersonAppearancesViewModel(personId, seasonId);

                return personAppearancesViewModel;
            }
        }

        
    }
}
